package com.qf.service.impl;

import com.qf.dao.AccountDao;
import com.qf.factory.BeanFactory;
import com.qf.service.AccountService;

/**
 * @version 1.0
 * 公众号：Java架构栈
 * @Author: 卓不凡
 */
public class AccountServiceImpl implements AccountService {
    //private     AccountDao accountDao = new AccountDaoImpl();
    //新增账户
    public void addAccount() {
        //AccountDao accountDao = new AccountDaoImpl();
        AccountDao accountDao = (AccountDao) BeanFactory.getBean("accountDao");

        System.out.println(accountDao);
        accountDao.addAccount();
    }
}
